package collections;

import java.util.*;

public class Map1
{
    public static void main(String args[])
    {
        Map hm = new HashMap();
        hm.put("Mary", "123-4567");
        hm.put("Larry", "234-5678");
        hm.put("Mary", "456-7890");
        hm.put("Felicia", "345-6789");

        Iterator iter = hm.entrySet().iterator();
        while (iter.hasNext())
        {
            Map.Entry e = (Map.Entry) iter.next();
            System.out.println(e.getKey() + " " + e.getValue());
        }
    }
}
